import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        /* 存储部门 */
        depart: [],
        /* 初始化token键值 */
        tokenKey: 'token',
        tokenValue: 'HJOFRHRIENEH2NI131239__)#3`2390efjefjewjfd&^%*@fiefneinfiwernienIRNIEN'
    },
    mutations: {
        setDepart(state, payload) {
            state.depart = payload;
        }
    },
    actions: {

    },
    modules: {
    }
})
